<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // function Person(name,age){
        //     this.name=name;
        //     this.age = age;
        //     this.sex = "nan";
        //     this.jump = function(){
        //         console.log("是构造函数的jump");
        //     }
        // };
        class Person{
            vvv = "nv"
            obj = {
                niubi:"牛牛牛"
            }
            constructor(name,age){
                this.name = name;
                this.age  = age;
                this.sex ="nan";
                this.jump = function(){
                    console.log("xxx")
                    console.log(this);
                }
            };
            static niu(){
                console.log("静态方法");//添加到 大 Person
            }
            static nianling = "185cm"
            rust(){
                console.log("原型对象的方法")
            }
        }

        let tom = new Person("tom",10);
        console.log(tom);
        console.dir(Person);
        Person.niu()
        
    </script>
</body>
</html>